import * as Keypairs from '@root/keypairs';

export default (): Promise<string> => {
  return Keypairs.generate({ kty: 'RSA', format: 'jwk' })
    .then(keypair => Keypairs.export({ jwk: keypair.private }));
};
